import os

print(os.name)
print(os.getcwd())
print(os.listdir())
# print(os.remove("3.txt"))
print(os.path.abspath(os.curdir))
print(os.path.isfile(os.curdir))
print(os.path.isdir(os.curdir))

print(os.path.split("E:\pyproject\demo\1.txt"))
print(os.path.splitext(r"E:\pyproject\demo\1.txt"))
print(os.path.splitext("E:\pyproject\demo\1.txt"))


print(os.path.getsize(r"E:\pyproject\demo\1.txt"))